\hypertarget{time_8c}{
\section{time.c File Reference}
\label{time_8c}\index{time.c@{time.c}}
}
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include $<$time.h$>$}\par
{\ttfamily \#include $<$unistd.h$>$}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{time_8c_a29b7451465deac204c5f7cb1f9c6e1fc}{MAX\_\-ARGS}~20
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{time_8c_a0495dfab35e9095d882ef469f1fcd6bc}{time\_\-default} (int argcounter, char $\ast$$\ast$argvector)
\begin{DoxyCompactList}\small\item\em function executed to run a command in fork and display the time of running \item\end{DoxyCompactList}\item 
int \hyperlink{time_8c_a3c04138a5bfe5d72780bb7e82a18e627}{main} (int argc, char $\ast$$\ast$argv)
\begin{DoxyCompactList}\small\item\em command main function \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Oana Munteanu, anul 2 Informatica -\/ Engleza 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.0
\end{DoxyVersion}
display the time 

\subsection{Define Documentation}
\hypertarget{time_8c_a29b7451465deac204c5f7cb1f9c6e1fc}{
\index{time.c@{time.c}!MAX\_\-ARGS@{MAX\_\-ARGS}}
\index{MAX\_\-ARGS@{MAX\_\-ARGS}!time.c@{time.c}}
\subsubsection[{MAX\_\-ARGS}]{\setlength{\rightskip}{0pt plus 5cm}\#define MAX\_\-ARGS~20}}
\label{time_8c_a29b7451465deac204c5f7cb1f9c6e1fc}


\subsection{Function Documentation}
\hypertarget{time_8c_a3c04138a5bfe5d72780bb7e82a18e627}{
\index{time.c@{time.c}!main@{main}}
\index{main@{main}!time.c@{time.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, \/  char $\ast$$\ast$ {\em argv})}}
\label{time_8c_a3c04138a5bfe5d72780bb7e82a18e627}


command main function 


\begin{DoxyParams}{Parameters}
\item[{\em argc}]-\/ calling arguments counter \item[{\em $\ast$$\ast$argv}]-\/ calling arguments vector\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}


\begin{DoxySeeAlso}{See also}
run command if argv contains a filename 

\hyperlink{time_8c_a0495dfab35e9095d882ef469f1fcd6bc}{time\_\-default} (argcounter, argvector);
\end{DoxySeeAlso}


\hypertarget{time_8c_a0495dfab35e9095d882ef469f1fcd6bc}{
\index{time.c@{time.c}!time\_\-default@{time\_\-default}}
\index{time\_\-default@{time\_\-default}!time.c@{time.c}}
\subsubsection[{time\_\-default}]{\setlength{\rightskip}{0pt plus 5cm}int time\_\-default (int {\em argcounter}, \/  char $\ast$$\ast$ {\em argvector})}}
\label{time_8c_a0495dfab35e9095d882ef469f1fcd6bc}


function executed to run a command in fork and display the time of running 


\begin{DoxyParams}{Parameters}
\item[{\em argcounter}]-\/ calling arguments counter \item[{\em $\ast$$\ast$argvector}]-\/ calling arguments vector\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
